<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="${host_url}/css/app/common.css">
<link rel="stylesheet"  href="${host_url}/css/app/member_center.css">
<script src="${host_url}/js/app/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>会员升级</title>
<script type="text/javascript">

  document.getElementsByTagName('html')[0].style.fontSize = document.documentElement.clientWidth/50 + 'px';
  var masterinfo_url = "";
  $(function(){
	  masterinfo_url = $("#masterinfo_url").val();
  });
  function fn_goMemberLevelup(level) {
	if(level == '122'){
		window.webkit.messageHandlers.ios_open_page.postMessage('WKViewController:::url->'+masterinfo_url+':::webTitle->${masterName}专区:::isRefresh->YES');
		return false;
	}
	if(level == '125'){
		window.webkit.messageHandlers.ios_open_page.postMessage('MemberUpgradePackageWithCouponViewController:::levelId->'+level+':::jumpIndex->2');
	}else{
		window.webkit.messageHandlers.ios_open_page.postMessage('MemberUpgradeWithCouponViewController:::levelId->'+level+':::jumpIndex->2');
	}

  }	
</script>
</head>
<body>
<input type="hidden" id="masterinfo_url" value="${masterinfo_url}" />
<div id="main">
    <div class="content">
    <c:forEach items="${list}" var="c" varStatus="ind">
    
   	    <c:if test="${'ios'==os}">
  			 <ul class="clearfix po-r" onclick="fn_goMemberLevelup(${c.level})">
 		</c:if>
   	    <c:if test="${'wechat'==os ||'web'==os}">
  			 <ul class="clearfix po-r" onclick="goMemberLevelupForWE('${c.level}')"   id='{"name":"levelup", "params": {"level":${c.level }}}'>
 		</c:if>
 		<c:if test="${'android'==os}">
 			<c:if test="${c.level!=122}">
 				<ul class="clearfix po-r" onclick="android.openPage('com.uniplaza.fenx.mmine.member.activity.MemUpDeAddrActivity:::levelId->${c.level}')">
 			</c:if>
 			<c:if test="${c.level==122 }">
 				<ul class="clearfix po-r" onclick="android.startUrl('${masterName}专区','${masterinfo_url}')">
 			</c:if>
 		</c:if>
            <li class="leftArea po-r">
           		<c:if test="${c.level==125 }">
               		<p><img alt="" src="${host_url}/img/level_1.png" style="width:34px;"></p> 
                </c:if>
           		<c:if test="${c.level==124 }">
               		<p><img alt="" src="${host_url}/img/level_2.png" style="width:34px;"></p> 
                </c:if>
           		<c:if test="${c.level==196 }">
               		<p><img alt="" src="${host_url}/img/level_3.png" style="width:34px;"></p> 
                </c:if>
           		<c:if test="${c.level==123 }">
               		<p><img alt="" src="${host_url}/img/level_4.png" style="width:34px;"></p> 
                </c:if>
           		<c:if test="${c.level==122 }">
               		<p><img alt="" src="${host_url}/img/level_5.png" style="width:34px;"></p> 
                </c:if>
            </li>
            <li class="rightarea po-r <c:if test="${c.level==122 }">inequable</c:if>" >
                <span class="top">${c.name}</span>
                <span class="bottom">
                	${ticket_name}充值优惠：
                	<fmt:formatNumber value="${c.rate*10}" pattern="#0.0" maxFractionDigits="1"/>折
                </span>
                <c:if test="${c.level == 125 }">
                <fmt:parseNumber value="${c.level_up_cash}"  integerOnly="true" var="cash"/>
               		<p class="po-a">&yen;${cash}<span class="arrow po-r">&gt;</span></p>
                </c:if>
                <c:if test="${c.level != 122 and c.level != 125}">
                    <fmt:parseNumber value="${c.level_up_cash}"  integerOnly="false" var="cash1"/>
                    <c:if test="${cash1 <1 and cash1 >0}">
               		 	<p class="po-a">&yen;${cash1}<span class="arrow po-r">&gt;</span></p>
                    </c:if>
                    <c:if test="${cash1 >1}">
                    	<fmt:parseNumber value="${c.level_up_cash}"  integerOnly="true" var="cash2"/>
               		 	<p class="po-a">&yen;${cash2}<span class="arrow po-r">&gt;</span></p>
                    </c:if>
                </c:if>
                 <c:if test="${c.level == 122 }">
                <p class="po-a">任务考核制<span class="arrow po-r">&gt;</span></p>
                </c:if>
            </li>
        </ul>
     </c:forEach>   
    </div>
</div>
</body>
</html>